import request from "@/utils/request";

/**
 * 获取平台基础统计信息
 * @param data
 * @returns {*}
 */
export function getPlatformStatistics(areaId) {
    return request({
        url: '/api/platform/v2/getPlatformStatistics?areaId=' + areaId,
        headers: {
            isToken: true
        },
        method: 'post'
    })
}
/**
 * 获取平台新增信息量
 * @param data
 * @returns {*}
 */
export function getGrowthData(startTime,endTime) {
    return request({
        url: '/api/platform/v2/getGrowthData?startTime=' + startTime + '&endTime=' + endTime,
        headers: {
            isToken: true
        },
        method: 'post'
    })
}

/**
 * 获取平台详情
 * @returns {*}
 */
export function getPlatformDetail() {
    return request({
        url: '/api/platform/v2/getPlatformDetail',
        headers: {
            isToken: true
        },
        method: 'post'
    })
}

// 获取主页评估对比 /prod-api/api/platform/v2/getAnalyseList
/**
 * 获取主页评估对比
 * @param nodeId
 * @returns {*}
 */
export function getAnalyseList(nodeId) {
    return request({
        url: '/api/platform/v2/getAnalyseList?nodeId='+nodeId,
        headers: {
            isToken: true
        },
        method: 'post'
    })
}
